//
//  CustomCell.m
//  LessonUICollectionView
//
//  Created by lanouhn on 15/5/29.
//  Copyright (c) 2015年 lrving. All rights reserved.
//

#import "CustomCell.h"

@implementation CustomCell

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height - 30)];
        _imageView.image = [UIImage imageNamed:@"shouye8.jpg"];
        [self addSubview:_imageView];
        self.backgroundColor = [UIColor grayColor];

        self.aLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 120, self.bounds.size.width, 30)];
        _aLabel.textAlignment = 1;
        
        _aLabel.text = @"三室两厅两卫";
//        _aLabel.font = [UIFont systemFontOfSize:14];
//        _aLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_aLabel];
        
        

    }
    return self;
}
@end
